package com.tuanzi.loan.business.entity.family;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * User: liangZongXi
 * Create time: 16:56 2018/11/19
 * Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "loan_union_foreign_channel_info")
public class LoanUnionForeignChannelInfo extends IdentityResponse implements Serializable {

    private static final long serialVersionUID = -8638437478501366147L;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "channel")
    @NotNull
    private Integer channelId;

    @Column(name = "iosprdid")
    @NotNull
    private Integer iosProductId;

    @Column(name = "prdid")
    @NotNull
    private Integer productId;

    @NotBlank
    @Column(name = "activity_id")
    private String activityId;

    @Column(name = "ios_download")
    private String iosDownload;

    @Column(name = "android_download")
    private String androidDownload;

}
